import Element from "element-ui";
import "@/styles/variables.scss";
import uploadFromComponent from "./index.vue";
import Vue from "vue";
const userListFrom = {};
userListFrom.install = function(Vue, options) {
  const ToastConstructor = Vue.extend(uploadFromComponent);
  // 生成一个该子类的实例
  const instance = new ToastConstructor();
  instance.$mount(document.createElement("div"));
  document.body.appendChild(instance.$el);
  Vue.prototype.$modalUserList = function(callback, handleNum, row, title) {
    console.log(instance.$refs.dialogDiy.dialogVisible, "instanceq");
    instance.$refs.dialogDiy.dialogVisible = true;
    instance.callback = callback;
    instance.handleNum = handleNum;
    instance.checked = row;
    instance.title = title || "";
  };
};
export default userListFrom;
